package top.dfghhj.anhanx.oauth.dao.impl;

import org.springframework.stereotype.Repository;
import top.dfghhj.anhanx.oauth.dao.SysRoleMenuDao;
import top.dfghhj.anhanx.oauth.entity.DO.SysRoleMenu;
import top.dfghhj.anhanx.oauth.mapper.SysRoleMenuMapper;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class SysRoleMenuDaoImpl implements SysRoleMenuDao {

    @Resource
    private SysRoleMenuMapper sysRoleMenuMapper;


    @Override
    public List<SysRoleMenu> findByRoleId(Long roleId) {
        return sysRoleMenuMapper.findByRoleId(roleId);
    }
}
